<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>充值记录报表管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/paymentorder/paymentOrder/">充值记录报表列表</a></li>
    <shiro:hasPermission name="paymentorder:paymentOrder:edit">
        <li><a href="${ctx}/paymentorder/paymentOrder/form">充值记录报表添加</a></li>
    </shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="paymentOrder" action="${ctx}/paymentorder/paymentOrder/"
           method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
            <%--<li><label>订单号：</label>
                <form:input path="orderNo" htmlEscape="false" maxlength="50" class="input-medium"/>
            </li>--%>
        <li><label>订单类型：</label>
            <form:select path="orderType" class="input-medium">
                <form:options items="${fns:getOrderType()}" itemLabel="label"
                              itemValue="value" htmlEscape="false"/>
            </form:select>
        </li>
            <%--<li><label>订单状态：</label>
                <form:select path="status" class="input-medium">
                    <form:options items="${fns:getPayState()}" itemLabel="label"
                                  itemValue="value" htmlEscape="false"/>
                </form:select>
            </li>--%>
            <%--<li><label>支付平台订单号：</label>
                <form:input path="platformOrderNo" htmlEscape="false" maxlength="50"
                            class="input-medium"/>
            </li>--%>
        <li><label>平台类型：</label>
            <form:select path="platformType" class="input-medium">
                <form:options items="${fns:getTerimalType()}" itemLabel="label"
                              itemValue="value" htmlEscape="false"/>
            </form:select>
        </li>
        <li>
            <label>记录创建人：</label>
            <form:input path="createBy.name" htmlEscape="false" class="input-medium"/>
        </li>
            <%--<li><label>买家ID，微信openid,	买家支付宝用户号：</label>
                <form:input path="buyerId" htmlEscape="false" maxlength="50" class="input-medium"/>
            </li>
            <li><label>卖家ID，微信mch_id，卖家支付宝用户号：</label>
                <form:input path="merchatId" htmlEscape="false" maxlength="50" class="input-medium"/>
            </li>--%>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
        </li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>ID</th>
        <th>订单号</th>
        <th>订单类型</th>
        <th>订单状态</th>
        <%--<th>支付平台订单号</th>--%>
        <th>支付平台类型</th>
        <%--<th>支付平台支付时间</th>--%>
        <th>订单金额</th>
        <%--<th>实际订单金额</th>
        <th>买家ID，微信openid, 买家支付宝用户号</th>
        <th>卖家ID，微信mch_id，卖家支付宝用户号</th>--%>
        <%--<th>订单过期时间</th>
        <th>平台回调时间</th>--%>
        <th>累计金额</th>
        <th>记录创建人</th>
        <th>支付时间</th>
        <shiro:hasPermission name="paymentorder:paymentOrder:edit">
            <th>操作</th>
        </shiro:hasPermission>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="paymentOrder">
        <tr>
            <td>
                    ${paymentOrder.id}
            </td>
            <td>
                    ${paymentOrder.orderNo}
            </td>
            <td>
                    ${paymentOrder.orderType}
            </td>
            <td>
                <c:if test="${paymentOrder.status == 'success'}">支付成功</c:if>
            </td>
                <%--<TD>
                        ${paymentOrder.platformOrderNo}
                </td>--%>
            <td>
                    ${paymentOrder.platformType}
            </td>
                <%--<td>
                    <fmt:formatDate value="${paymentOrder.platformPayTime}"
                                    pattern="yyyy-MM-dd HH:mm:ss"/>
                </td>--%>
                <%--<td>
                        ${paymentOrder.moneyOrig}
                </td>--%>
                <td>
                        ${paymentOrder.moneyReal}
                </td>

                <%--<td>
                        ${paymentOrder.buyerId}
                </td>
                <td>
                        ${paymentOrder.merchatId}
                </td>--%>
                <%--<td>
                    <fmt:formatDate value="${paymentOrder.expireTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                </td>
                <td>
                    <fmt:formatDate value="${paymentOrder.notifyTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
                </td>--%>
            <td>
                    ${paymentOrder.sumMoney}
            </td>
            <td>
                    ${paymentOrder.createBy.name}
            </td>
            <td>
                <fmt:formatDate value="${paymentOrder.updateDate}" pattern="yyyy-MM-dd"/>
            </td>
            <shiro:hasPermission name="paymentorder:paymentOrder:edit">
                <td>
                    <a href="${ctx}/paymentorder/paymentOrder/form?id=${paymentOrder.id}">修改</a>
                    <a href="${ctx}/paymentorder/paymentOrder/delete?id=${paymentOrder.id}"
                       onclick="return confirmx('确认要删除该充值记录报表吗？', this.href)">删除</a>
                </td>
            </shiro:hasPermission>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>